﻿namespace Seagull.Foundation
{
    /// <summary>
    /// <typeparamref name="TEvent"/>
    /// 处理程序的上下文信息
    /// </summary>
    /// <typeparam name="TEvent"></typeparam>
    public class EventContext<TEvent> where TEvent : IEvent
    {
        public EventContext(TEvent message)
        {
            this.Message = message;
        }

        public TEvent Message { get; }
    }
}
